package com.example.tr_app;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ParseResult {

    public static String parseresult(String result){
        //复杂的json数据
        JSONObject json = JSONObject.fromObject(result); //得到整个json串
        String translation = JSONObject.fromObject(JSONArray.fromObject(json.getString("trans_result")).get(0)).getString("dst");
        return translation;
    }
}
